<template>
  <div class="app-container">
    <van-config-provider :theme="themeStore.theme">
      <!-- 路由出口 -->
      <RouterView></RouterView>
    </van-config-provider>
  </div>
</template>

<script lang="ts" setup>
import { RouterView } from 'vue-router'
import { useThemeStore } from './stores/modules/theme'

// 主题切换
const themeStore = useThemeStore()
</script>

<style lang="scss" scoped>
.app-container {
  height: 100%;
  .van-config-provider {
    height: 100%;
  }
}
</style>
